import axios from 'axios';
async function ajax(arg, cb = null) {
    let res = await axios({
        ...arg
    }).catch(err => {
        console.log(err)
    });
    //区分处理
    res && cb(res);
}


export default ajax